<%@ page import="com.oriental.reserve.enums.AdjustmentStatus" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags/form" %>
<%--
  User: Yangxp
  Date: 2016/5/19
  Time: 9:31
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../../common/taglibs.jsp" %>
<html>
<head>
    <title>Title</title>
    <script src="${ctx}/js/views/reserve/report/reserveAdjustmentDetail.js"></script>
</head>
<body ng-app="myApp" style="overflow:scroll;overflow-x:hidden">

<core:import url="../../common/pageHead.jsp">
    <core:param name="title" value="查询备付金报表余额信息"/>
</core:import>

<div ng-controller="queryCtrl" class="container-fluid">
    <form id="queryForm" name="queryForm" action="${ctx}/reserve/report/adjustment/search" class="form-inline"
          autocomplete="off">
        <table table-detail>
            <tr>
                <td class="text-right">
                    账号：
                </td>
                <td>
                    <input type="text" ng-model="vm.queryBean.accountNo" class="{{vm.constant.inputClass}}"
                           typeahead-min-length="0"   uib-typeahead="item.accountNo as item.bankCode for item in vm.cached.RESERVE_LIST | filter:$viewValue | limitTo:10"/>

                </td>
                <td class="text-right">
                    调整日期：
                </td>
                <td>
                    <input type="text" ng-model="vm.queryBean.businessDate" uib-datepicker-popup="yyyy-MM-dd" required
                           class="{{vm.constant.inputClass}}"/>
                </td>
            </tr>
            <tr>
                <td colspan="8" class="textCenter">
                    <button type="button" ng-click="vm.queryDetail()" class="btn btn-default">查询</button>
                </td>
            </tr>

        </table>
    </form>

    <div>
        <p class="btn-group">
            <shiro:hasPermission name="reserve-adjustment_add">
                <button ng-click="vm.addItem()"><i class="glyphicon glyphicon-plus"></i></button>
            </shiro:hasPermission>
            <shiro:hasPermission name="reserve-adjustment_update">
                <button ng-click="vm.updateItem()"><i class="glyphicon glyphicon-pencil"></i></button>
            </shiro:hasPermission>
            <shiro:hasPermission name="reserve-adjustment_delete">
                <button ng-click="vm.deleteItem()"><i class="glyphicon glyphicon-minus"></i></button>
            </shiro:hasPermission>
            <shiro:hasPermission name="reserve-adjustment_pass">
                <button ng-click="vm.reviewPass()"><i>审核通过</i></button>
            </shiro:hasPermission>
            <shiro:hasPermission name="reserve-adjustment_reject">
                <button ng-click="vm.reviewReject()"><i>审核拒绝</i></button>
            </shiro:hasPermission>
            <shiro:hasPermission name="reserve-adjustment_back">
                <button ng-click="vm.reviewBack()"><i>审核回退</i></button>
            </shiro:hasPermission>
        </p>
    </div>

    <div style="overflow:auto">
        <div style="width: 2300px;text-align: center;">
            <table table-detail>
                <thead>
                <tr>
                    <th><input type="checkbox" ng-model="_checkedAll" checkbox-all="vm.pagination.list"></th>
                    <th>账号</th>
                    <th>调整日期</th>
                    <th>调整状态</th>
                    <th>本期银行入金</th>
                    <th>本期业务入金</th>
                    <th>本期结算入金</th>
                    <th>本期业务本期入金</th>
                    <th>应付手续费</th>
                    <th>实付手续费</th>
                    <th>本期无业务入金</th>
                    <th>无业务入金补入账</th>
                    <th>无业务入金退回</th>
                    <th>本期银行出金</th>
                    <th>本期业务出金</th>
                    <th>本期结算出金</th>
                    <th>本期业务本期出金</th>
                    <th>头寸调拨调出金额</th>
                    <th>头寸调拨调入金额</th>
                    <th>本期自有资金存放备付金</th>
                    <th>本期提出原存放自有资金</th>
                    <th>本期收到利息</th>
                    <th>利息收付到存管-收</th>
                    <th>利息收付到存管-付</th>
                    <th>利息结转</th>
                    <th>手续费管理费支出</th>
                    <th>结转手续费</th>
                    <th>结转风险准备金</th>
                    <th>业务反映银行未反映-入金</th>
                    <th>业务反映银行未反映-出金</th>
                    <th>银行反映业务未反映-入金</th>
                    <th>银行反映业务未反映-出金</th>
                    <th>无业务出金</th>
                    <th>无业务出金补业务</th>
                    <th>无业务出金退回</th>
                    <th>经办人</th>
                    <th>经办时间</th>
                    <th>审核人</th>
                    <th>审核时间</th>
                    <th>调整备注</th>
                </tr>
                </thead>
                <tbody>
                <tr  ng-repeat="bean in vm.pagination.list track by $index">
                    <td><input name="check" type="checkbox" ng-model="bean._checked"></td>
                    <td>{{bean.accountNo}}</td>
                    <td>{{bean.businessDate|date:'yyyy-MM-dd'}}</td>
                    <td>{{{
                        <%for (AdjustmentStatus e : AdjustmentStatus.values()) {%>
                        '<%=e.getCode()%>':'<%=e.getDesc()%>',
                        <%}%>
                        }[bean.adjustmentStatus]}}</td>
                    <td>{{bean.bankReceivable}}</td>
                    <td>{{bean.busiReceivable}}</td>
                    <td>{{bean.receivableSettle}}</td>
                    <td>{{bean.receivableSettleToday}}</td>
                    <td>{{bean.feePay}}</td>
                    <td>{{bean.feePayPaid}}</td>
                    <td>{{bean.receivableNotBusi}}</td>
                    <td>{{bean.receivableNotBusiRec}}</td>
                    <td>{{bean.receivableNotBusiRefund}}</td>
                    <td>{{bean.bankPayable}}</td>
                    <td>{{bean.busiPayable}}</td>
                    <td>{{bean.payableSettle}}</td>
                    <td>{{bean.payableSettleToday}}</td>
                    <td>{{bean.positionAllocationPay}}</td>
                    <td>{{bean.positionAllocationPec}}</td>
                    <td>{{bean.privateRec}}</td>
                    <td>{{bean.privatePay}}</td>
                    <td>{{bean.interestRec}}</td>
                    <td>{{bean.positionAllocationInterestRec}}</td>
                    <td>{{bean.positionAllocationInterestPay}}</td>
                    <td>{{bean.interestCarry}}</td>
                    <td>{{bean.currentManageFee}}</td>
                    <td>{{bean.curryFeeCarry}}</td>
                    <td>{{bean.riskFeeCarry}}</td>
                    <td>{{bean.busiAddBankNoAdd}}</td>
                    <td>{{bean.busiSubBankNoSub}}</td>
                    <td>{{bean.bankAddBusiNoAdd}}</td>
                    <td>{{bean.bankSubBusiNoSub}}</td>
                    <td>{{bean.payableNoBusi}}</td>
                    <td>{{bean.payableNoBusiPay}}</td>
                    <td>{{bean.payableNoBusiRefund}}</td>
                    <td>{{bean.handledBy}}</td>
                    <td>{{bean.handledAt|date:'yyyy-MM-dd HH:mm:ss'}}</td>
                    <td>{{bean.reviewBy}}</td>
                    <td>{{bean.reviewAt|date:'yyyy-MM-dd HH:mm:ss'}}</td>
                    <td>{{bean.remarkDesc}}</td>
                </tr>
                </tbody>

            </table>
        </div>
    </div>

    <core:import url="../../common/pageFoot.jsp"/>
</div>
<core:import url="../../common/nav.jsp"/>
</body>
</html>
